import Vue from 'vue'
import VueRouter from 'vue-router'
// 引入Mine组件
import Mine from '../components/Mine.vue'
import VChartsDemo from '../components/VChartsDemo.vue'



Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/mine',
  },
  {
    path: '/mine',
    component: Mine
  }
  ,{
    path: '/charts',
    component: VChartsDemo
  }
]

const router = new VueRouter({
  routes
})

export default router
